[ACM] Fix the resource representations in the resource_label
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 18 Oct 2006 16:54:58 +0000 (17:54 +0100)
commit4b1bbbba6ce14f7030e147c07373746dd27c5248
tree0cac88dea00e324d06bda8024e5d0c39e10be086
parent84b4b812e6b3ada9960541ced26bd2f6b97aea27
[ACM] Fix the resource representations in the resource_label
file. Without this patch, multiple representations of the same
resource can co-exist in the resource label file and lead to errors
during operation.

Ensures that all resource file names are stored with absolute
path name and are unique. Setting labels of phy-resources, relative
paths will automatically be pre-pended with '/dev/'; labeling
file-resources with relative paths will raise an error.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>
tools/python/xen/util/security.py
tools/python/xen/xm/addlabel.py
tools/python/xen/xm/getlabel.py
tools/python/xen/xm/rmlabel.py